home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / text1 / cms_help_files / rhf.helpmark < prev    next >
Text File  |  1991-10-23  |  5KB  |  116 lines

  1. +-----------------------------------------------------------------------------+
  2. |                              runningheadformat                              |
  3. +-----------------------------------------------------------------------------+
  4.  
  5. Abbreviation:  π|\rhfπ%
  6.  
  7. Parameters:    π|submarkupπ%
  8.  
  9. Submarkup:     π|\bothpages, \evenpages, \oddpagesπ%
  10.  
  11.     π|Description:π%
  12. The  \runningheadformat markup  provides running  titles at  the top  of all
  13. pages except the title  page.  The default running  top title for TEXT1 is a
  14. right justified page number.
  15.  
  16. π|bothpagesπ% is used to place the  same running head at the top of both the
  17. even and odd pages.   The \line markup defines a  single title line.  Within
  18. it, you  may center, left  align, or  right align text,  using the submarkup
  19. \ctr, \lft, or  \rt.  Besides \line, you may  also use markup such as \hrule
  20. and \verticalspace.
  21.  
  22. π|evenpagesπ% is  used to  place the same  running head  at the top  of each
  23. even page.    The \line  markup defines  a single  title line.    Within it,
  24. you may center,  left align, or right align  text, using the submarkup \ctr,
  25. \lft, or  \rt.  Besides  \line, you may  also use markup such  as \hrule and
  26. \verticalspace.
  27.  
  28. π|oddpagesπ% is  used to  place the  same running  head at  the top  of each
  29. odd page.   The \line  markup defines a single  title line.   Within it, you
  30. may  center, left  align, or  right align  text,  using the  submarkup \ctr,
  31. \lft, or  \rt.  Besides  \line, you may  also use markup such  as \hrule and
  32. \verticalspace.
  33.  
  34.     π|Example:π%
  35. To customize running  titles, you modify the  \runningheadformat for the top
  36. titles  and the  \runningfootformat for  bottom titles.    In  this example,
  37. "Sociogeology" and a page number are placed at the top of every page.
  38.  
  39. \runningheadformat{\bothpages{\it
  40.    \line{\lft{Sociogeology}\ctr{}\rt{\pn}}
  41.    \vs{2pt}
  42.    \hrule
  43.    \verticalspace{18pt}
  44.    }
  45. }
  46.  
  47. +-----------------------------------------------------------------------------+
  48. |                                                                             |
  49. | Sociogeology                                                              1 |
  50. | ........................................................................... |
  51. +-----------------------------------------------------------------------------+
  52.  
  53.     π|Example:π%
  54. This example alternates the author's name and page number at the top of even
  55. and odd pages.  It complements the last example on the previous page.
  56.  
  57. \rhf{\evenpages{\vs{\bl}
  58.            \line{\lft{Chert}}}
  59.      \oddpages{\vs{\bl}
  60.               \line{\rt{\pagenumber}}}
  61.    }
  62.  
  63. Even pages will look like:
  64.  
  65. +-----------------------------------------------------------------------------+
  66. |                                                                             |
  67. | Chert                                                                       |
  68. |                                                                             |
  69. +-----------------------------------------------------------------------------+
  70.  
  71. Odd pages will look like:
  72.  
  73. +-----------------------------------------------------------------------------+
  74. |                                                                             |
  75. |                                                                          4  |
  76. |                                                                             |
  77. +-----------------------------------------------------------------------------+
  78.  
  79.     π|Notes:π%
  80. An empty \lft, \ctr, or \rt may be omitted as was done in the above example.
  81.     A construct such as,
  82.  
  83. \rhf{\bothpages{
  84.          \line{\lft{page \pn}\ctr{\today}
  85.             \rt{PNW Waterfalls}}}}
  86.  
  87. will not print the date centered on the page:
  88.  
  89. +-----------------------------------------------------------------------------+
  90. |                                                                             |
  91. | page 6                   February 5, 1987                   PNW Waterfalls  |
  92. |                                                                             |
  93. +-----------------------------------------------------------------------------+
  94.  
  95. To accomplish this, you should  print the left and right justified text with
  96. \line, then space backwards one line (\verticalspace{-\bl}), then center the
  97. date:
  98.  
  99. \rhf{\bothpages{\line{\lft{page \pn}
  100.  
  101.              \rt{PNW Waterfalls}}}
  102.           \vs{-\bl}
  103.           \line{\ctr{\today}}}
  104.  
  105. +-----------------------------------------------------------------------------+
  106. |                                                                             |
  107. | page 7                       February 5, 1987               PNW Waterfalls  |
  108. |                                                                             |
  109. +-----------------------------------------------------------------------------+
  110.  
  111.     The \runningheadformat markup must  come after the \monospace markup, if
  112. both are used.
  113.     If you want no page numbers, then enter the following:
  114.  
  115. \runningheadformat{\bothpages{}}
  116.